

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_ManageInsurance.aspx.cs" Inherits="Admin_Ad_ManageInsurance" %>

<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>

<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>

<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Manage Insurance</title>
        <link href="include\styles.css" rel="stylesheet" />
        
    <scriptsrc="../JScript/gen_validatorv2.js">
    </script>
</head>
<body>
  
  <form id="Adduser" runat="server">
    <div>
    
    <table width="100%"  border="0" cellspacing="0" cellpadding="0" id="TABLE1">

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	
  <tr>
    <td></td>
    <td style="width: 953px"><table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img alt="" src="../images/spacer.gif" width="15" height="1" /></td>
        <td width="551" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" height="35"></td>
            <td width="96%" class="normalblack_12" align="center" ><b>
                <asp:Label ID="Label1" runat="server" Text="Manage Insurance"></asp:Label>
            </b></td>
            <td width="2%"></td>
          </tr>
          <tr>
            <td height="15"></td>
            <td align="center" class="normalblack_12">
                <asp:Label ID="lblMsg" runat="server" ForeColor="Green"></asp:Label></td>
            <td></td>
          </tr>
          <tr>
            <td height="200"></td>
            <td valign="top" class="normalblack_12" align="center"> 
            
                     <table width="80%" align="center" class="normalgrey_12">
                         <tr>
                             <td align="right">
                                 Search</td>
                             <td style="width: 12px">
                                 :</td>
                             <td align="left">
                                 <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="btnSearch"
                                     runat="server" OnClick="btnSearch_Click" Text="Go" /></td>
                         </tr>
    <tr>
    <td align="right">
        Add a New
        Insurance Company </td>
    <td style="width: 12px">:</td>
    <td align="left">
        <asp:TextBox ID="txtInsuranceName" runat="server" MaxLength="200"></asp:TextBox>
        <span style="color: red">
                <asp:Button ID="btnSubmit" runat="server" Text="Add" OnClick="btnSubmit_Click" /></span></td>
    </tr>
                         <tr>
                             <td colspan="3">
                                 <asp:GridView ID="InsuranceGrid" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="5" GridLines="Horizontal" OnPageIndexChanging="InsuranceGrid_PageIndexChanging" PageSize="15" OnRowCancelingEdit="InsuranceGrid_RowCancelingEdit" OnRowEditing="InsuranceGrid_RowEditing" OnRowUpdating="InsuranceGrid_RowUpdating" Width="100%" DataKeyNames="id,name" OnRowDeleting="InsuranceGrid_RowDeleting">
                                     <Columns>
                                         <asp:BoundField HeaderText="S.No." DataField="id" ReadOnly="True">
                                             <ItemStyle HorizontalAlign="Left" />
                                         </asp:BoundField>
                                         <asp:BoundField HeaderText="Insurance Name" DataField="name">
                                             <ItemStyle HorizontalAlign="Left" />
                                         </asp:BoundField>
                                         <asp:CommandField ShowEditButton="True" ShowDeleteButton="True" ButtonType="Image" CancelImageUrl="../images/delete.gif" DeleteImageUrl="../images/delete.gif" EditImageUrl="../images/editinfo.gif" UpdateImageUrl="~/Images/tick.png"  />
                                     </Columns>
                                     <PagerSettings Mode="NumericFirstLast" />
                                     <AlternatingRowStyle BackColor="#EEEEEE" />
                                 
                                 </asp:GridView>
                             </td>
                         </tr>
    </table>
            
            </td>
            <td></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td></td>
  </tr>
  <tr>
    <td colspan="3" style="height: 30px"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC" style="width: 953px"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>

    </div>
    </form>
    <iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="../JScript/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
    <script>
		//You should create the validator only after the definition of the HTML form       
	     var frmvalidator  = new Validator("Adduser","btnSubmit");	     
	    frmvalidator.addValidation("txtInsuranceName","req","Please Enter Insurance Name.");		    	    
    </script>

</body>
</html>
